// import http from '../utils/http'
//手术间关联工作站
import request from '@/utils/request'

export function hasAllOR(params) {
    return request({
      url: '/TTransScanRecord/hasAll',
      method: 'get',
      params
    })
}
export function List(params) {
    return request({
      url: '/TTransScanRecord/hasAllToPage',
      method: 'get',
      params
    })
}
export function Add(data) {
    return request({
      url: '/TTransScanRecord/add',
      method: 'post',
      data
    })
}
export function Update(data) {
    return request({
      url: '/TTransScanRecord/update',
      method: 'post',
      data
    })
}
export function Delete(data) {
    return request({
      url: '/TTransScanRecord/delete',
      method: 'post',
      data
    })
}
export function hasAllDepId(params) {
  return request({
    url: '/TTransScanRecord/hasAllByDepId',
    method: 'get',
    params
  })
}

export function hasAllToPage(params) {
  return request({
    url: '/TBaseOperationSchedule/hasAllToPage',
    method: 'get',
    params
  })
}
export function countToTypeTD(params) {
  return request({
    url: '/TTransScanRecord/countToTypeTD',
    method: 'get',
    params
  })
}
export function hasAllToMSG(params) {
  return request({
    url: '/TTransScanRecord/hasAllToMSG',
    method: 'get',
    params
  })
}
export function hasAllToMSGSeach(params) {
  return request({
    url: '/TTransScanRecord/hasAllToMSGSeach',
    method: 'get',
    params
  })
}

export function taskAccept(data) {
  return request({
    url: '/TTransScanRecord/updateTask',
    method: 'post',
    data
  })
}

export function queryByExecutor(params) {
  return request({
    url: '/TTransScanRecord/queryByExecutor',
    method: 'get',
    params
  })
}

//三方核查
export function TTransCheckRecordSearch(params) {
  return request({
    url: '/TTransCheckRecord/searchToPage',
    method: 'get',
    params
  })
}
//三方核查new
// export function TTransCheckRecordSearch(params) {
//   return request({
//     url: '/TTransCheckRecord/hasAll',
//     method: 'get',
//     params
//   })
// }

//访视
export function TTransVisitRecordSearch(params) {
  return request({
    url: '/TTransVisitRecord/search',
    method: 'get',
    params
  })
}


